package org.luxor.eshop.account.service;

import org.luxor.eshop.account.entity.AccountEntity;
import org.luxor.eshop.account.entity.dto.PaymentReqDto;
import org.luxor.eshop.account.entity.dto.ReceiptReqDto;

/**
 * 帐户服务
 *
 * @author Mr.Yan  @date: 2020/11/25
 */
public interface AccountService {

    /**
     * 获取账户信息
     *
     * @param account 账户编号
     * @return 账户信息
     */
    AccountEntity get(String account);

    /**
     * 付款
     *
     * @param paymentReq 付款账户和金额
     */
    void payment(PaymentReqDto paymentReq);

    /**
     * 收款
     *
     * @param receiptReq 收款账户和金额
     */
    void receipt(ReceiptReqDto receiptReq);
}
